﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="SaleOffVn.Web.Modules.Login" %>
<asp:Login ID="Login1" runat="server" BorderStyle="double" DestinationPageUrl="~/Administration/News.aspx"
    CreateUserUrl="~/SignUp.aspx" DisplayRememberMe="false" 
    onloggedin="Login1_LoggedIn" BorderWidth="0">
    <LayoutTemplate>
        <asp:Panel ID="DefaultbuttonPanel" runat="server" defaultbutton="Login">
        <table border="0" cellpadding="2" cellspacing="0" class="bodyText">
            <tr>
                <td align="right">
                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">
    User Name:</asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="UserName" runat="server" Width="220px" />
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                        ErrorMessage="*" />
                    <asp:RegularExpressionValidator ID="UsernameValidator" runat="server" ControlToValidate="UserName"
                        ValidationExpression="[\w| ]*" ErrorMessage="Invalid User Name" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">
    Password:</asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="220px" />
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                        ErrorMessage="*" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="left">
                    <asp:LinkButton ID="lbtForgotPassword" runat="server" CausesValidation="false" OnClick="lbtForgotPassword_Click">» Forgot Password?</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td class="message-error">
                    <asp:Literal ID="FailureText" runat="server"/>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="left">
                    <asp:Button ID="Login" CommandName="Login" runat="server" Text="Login" />
                </td>
            </tr>
        </table>
        </asp:Panel>
    </LayoutTemplate>
</asp:Login>